class_name GameStarter
extends Node

@export var init_game_state:GameEnum.GameState

func _ready() -> void:
	GameManager.rng_init()
	
	# TODO 顺序可能需要调整
	GameStorageSystem.init_system()
	GameUISystem.init_system()
	GameObjectPoolSystem.init_system()
	GameWeaponSystem.init_system()
	GameBuffSystem.init_system()
	GameMapSystem.init_system()
	GamePlayerSystem.init_system()
	GameEffectSystem.init_system()
	GameAudioSystem.init_system()
	GameEventSystem.init_system()
	GameCampSystem.init_system()
	GameAchievementSystem.init_system()
	
	GameManager.build_fsm()
	GameManager.translate_game_state(init_game_state)
	GameUISystem.view_manager.open_view(GameEnum.ViewType.MainMenuView)
